package com.qingxin.park.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.codehaus.jackson.map.annotate.JsonSerialize;
import org.hibernate.annotations.GenericGenerator;

/**
 *  特色基地
 * @author Administrator
 *
 */
@Entity
@Table(name = "farm_park_tese")
@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL)
public class ParkTeSe extends com.qingxin.sys.entity.BaseEntity implements
java.io.Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -2758700380937951977L;

	private String parktsid;
	private String parkid;
	private String title;
	private String tstype;//1资质认证2管理制度3特色产品
	private String tsdescrib;
	private String fujian;
	private String create_by;
	private Date create_time;
	
	private String parkName;
	public ParkTeSe() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	public ParkTeSe(String parktsid, String parkid, String title,
			String tstype, String tsdescrib, String fujian, String create_by,
			Date create_time) {
		super();
		this.parktsid = parktsid;
		this.parkid = parkid;
		this.title = title;
		this.tstype = tstype;
		this.tsdescrib = tsdescrib;
		this.fujian = fujian;
		this.create_by = create_by;
		this.create_time = create_time;
	}
	
	@Transient
	public String getParkName() {
		return parkName;
	}

	public void setParkName(String parkName) {
		this.parkName = parkName;
	}

	public ParkTeSe(String parktsid, String parkid, String title,
			String tstype, String fujian, String create_by,
			Date create_time,String parkName) {
		super();
		this.parktsid = parktsid;
		this.parkid = parkid;
		this.title = title;
		this.tstype = tstype;
		this.fujian = fujian;
		this.create_by = create_by;
		this.create_time = create_time;
		this.parkName = parkName;
	}

	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "parktsid", unique = true, nullable = false, length = 32)
	public String getParktsid() {
		return parktsid;
	}

	public void setParktsid(String parktsid) {
		this.parktsid = parktsid;
	}

	@Column(name = "parkid", length = 32)
	public String getParkid() {
		return parkid;
	}

	public void setParkid(String parkid) {
		this.parkid = parkid;
	}

	@Column(name = "title", length = 200)
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Column(name = "tstype", length = 1)
	public String getTstype() {
		return tstype;
	}

	public void setTstype(String tstype) {
		this.tstype = tstype;
	}

	@Column(name = "tsdescrib")
	public String getTsdescrib() {
		return tsdescrib;
	}

	public void setTsdescrib(String tsdescrib) {
		this.tsdescrib = tsdescrib;
	}

	@Column(name = "fujian", length = 200)
	public String getFujian() {
		return fujian;
	}

	public void setFujian(String fujian) {
		this.fujian = fujian;
	}

	@Column(name = "create_by", length = 32)
	public String getCreate_by() {
		return create_by;
	}

	public void setCreate_by(String create_by) {
		this.create_by = create_by;
	}
	
	@Column(name = "create_time", length = 23)
	public Date getCreate_time() {
		return create_time;
	}

	public void setCreate_time(Date create_time) {
		this.create_time = create_time;
	}
	
	
	
	
}
